package com.itheima.config;

import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

//@Configuration两层含义
// 1.声明当前类为Spring配置类
// 2.配置类意味着spring框架需要将这个类上所有的注解都要挨个处理一下
@Configuration
@ComponentScan("com.itheima")
//设置bean扫描路径，多个路径书写为字符串数组格式
//@ComponentScan({"com.itheima.service","com.itheima.dao"})
public class SpringConfig {
}
